package com.kejizhentan.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kejizhentan.yygh.model.cmn.Dict;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 *
 */
public interface DictService extends IService<Dict> {

    List<Dict> findChlidData(Long id);

    /**
     * @Auther: kejizhentan
     * @Date 2022/11/27 12:23
     * @Description: 字典导出
     */
    void exportDict(HttpServletResponse response) throws Exception;

    /**
     * @Auther: kejizhentan
     * @Date 2022/11/27 13:06
     * @Description: 导入数据字典
     */
    void importDict(MultipartFile file);

    String getDictName(String dictCode, String value);

    List<Dict> findChildData(Long id);

    List<Dict> findByDictCode(String dictCode);
}
